package com.example.demo.service;

import java.util.List;

import org.springframework.stereotype.Service;

@Service
public interface IService<T> {

	public T selectByPrimaryKey(Object key);
	
    public T selectOne(T entity);

    public int selectCount(T entity);

    public List<T> select(T entity);

    public int save(T entity);

    public int deleteByPrimaryKey(Object key);

    public int delete(T entity);

    public int updateAll(T entity);

    int updateNotNull(T entity);

    public List<T> selectByExample(Object example);

    public <T> void initModelAdd(T model, String user_id);

    public <T> void initModelUpdate(T model, String user_id);
}
